﻿@model PlanificadorDeEventos.Models.LocalPasswordModel



@using (Html.BeginForm("Manage", "Account")) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()

    <fieldset>
        <legend>Change Password Form</legend>
        <ol>
             <li>
                @Html.LabelFor(m => m.Nombre)
                @Html.TextBoxFor(m => m.Nombre, new { @readonly = true })
            </li>
             <li>
                @Html.LabelFor(m => m.Email)
                @Html.EditorFor(m => m.Email)
            </li>
            <li>
                @Html.LabelFor(m => m.OldPassword)
                @Html.PasswordFor(m => m.OldPassword)
            </li>
            <li>
                @Html.LabelFor(m => m.NewPassword)
                @Html.PasswordFor(m => m.NewPassword)
            </li>
            <li>
                @Html.LabelFor(m => m.ConfirmPassword)
                @Html.PasswordFor(m => m.ConfirmPassword)
            </li>
        </ol>
        <input type="submit" value="Editar usuario" />

       

        
    </fieldset>
}

@{
    if (ViewBag.isAdmin == null || !ViewBag.isAdmin)
    {
           using (Html.BeginForm("EliminarCuenta", "Account"))
           { 
            <input type="button" id="btnpopup" value="Eliminar usuario" onclick="ShowModelPopUp();" />
           }
    }
}
   

    <script type="text/javascript">
        ShowModelPopUp = function () {
            window.showModalDialog('/Account/EliminarCuenta', "WindowPopup", 'dialogWidth:400px; dialogHeight:200px; resizable:0; center:1;');
        }
     </script>

